 import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double length = sc.nextDouble();
        int flag=0;
        if((int)length!=length)flag=1;
        System.out.println(((int)length+flag+2)/3);
    }
}
